<!doctype html>
<html lang="en">
<#include "../common/header.ftl">
<body>

<div id="wrapper" class="toggled">
<#include "../common/nav.ftl">

    <div id="page-content-wrapper">
        <div class="container-fluid">
            <div class="row clearfix">
                <div class="col-md-12 column">
                    <form role="form" method="post" action="/sell/seller/product/save">
                        <div class="form-group">
                            <label>名称</label>
                            <input type="text" class="form-control" name="productName"
                                   value="${(productInfo.productName)!""}"/>
                        </div>
                        <div class="form-group">
                            <label>价格</label>
                            <input type="text" class="form-control" name="productPrice"
                                   value="${(productInfo.productPrice)!""}"/>
                        </div>
                        <div class="form-group">
                            <label>库存</label>
                            <input type="text" class="form-control" name="productStock"
                                   value="${(productInfo.productStock)!""}"/>
                        </div>
                        <div class="form-group">
                            <label>商品描述</label>
                            <input type="text" class="form-control" name="productDescription"
                                   value="${(productInfo.productDescription)!""}"/>
                        </div>
                        <div class="form-group">
                            <label>商品图片</label>
                            <img src="${(productInfo.productIcon)!""}" style="width: 100px;height: 100px;">
                            <input type="text" class="form-control" name="productIcon"
                                   value="${(productInfo.productIcon)!""}"/>
                        </div>
                        <div class="form-group">
                            <label>类别</label>
                            <select name="categoryType" class="form-control">
                            <#list categoryList as category>
                                <option value="${category.categoryType}"
                                    <#if (productInfo.categoryType)?? && productInfo.categoryType ==category.categoryType>
                                        selected
                                    </#if>

                                > ${category.categoryName}</option>
                            </#list>
                            </select>
                        </div>

                        <input type="text" name="productId" value="${(productInfo.productId)!""}" hidden>
                        <button type="submit" class="btn btn-default">保存</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>


</body>
</html>